package com.hyperchain.controller;

import com.hyperchain.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {

    @Autowired
    private EmailService emailService;
    @GetMapping("/send")
    public String sendStringEmail(){
        String path = "https://iprp.zjip.org.cn/ddd766863e357a534b4031cbfb8f10e4d2076e269a1a092eb4ace49c822b3f49.png";
        emailService.sendEmail("2535385543@qq.com","你好","我发的你收到了吗？" , path);
        return "发送成功";
    }

}
